﻿using System;
using System.Windows.Forms;
using DevExpress.XtraBars;
using QLTK.User_Control;

namespace QLTK
{
    public partial class frmMain : Form
    {
        public frmMain()
        {
            InitializeComponent();
        }

        private void frmMain_Load(object sender, EventArgs e)
        {
        }

        private void barButtonItemConfig_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
            XtraConfig config = new XtraConfig();
            config.Dock = DockStyle.Fill;
            panelControlMain.Controls.Add(config);
        }

        private void barButtonItemView_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
            XtraViewall viewall = new XtraViewall();
            viewall.Dock = DockStyle.Fill;
            panelControlMain.Controls.Add(viewall);
        }

        private void barButtonItemGetdata_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
        }

        private void barButtonItemLoan_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
            XtraLoan loan = new XtraLoan();
            loan.Dock = DockStyle.Fill;
            panelControlMain.Controls.Add(loan);
        }

        private void barButtonItemStore_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
            XtraStore store = new XtraStore();
            store.Dock = DockStyle.Fill;
            panelControlMain.Controls.Add(store);
        }

        private void barButtonItemViewStore_ItemClick(object sender, ItemClickEventArgs e)
        {
            panelControlMain.Controls.Clear();
            XtraViewstore viewstore = new XtraViewstore();
            viewstore.Dock = DockStyle.Fill;
            panelControlMain.Controls.Add(viewstore);
        }
     
    }
}